import http from '@/utils/http'

//获取菜单列表
export async function getMenuListApi(){
    return await http.get("/api/menu/list",null)
}
// 新增菜单
export async function addMenuApi(param){
    return await http.post("/api/menu",param);
}

//获取上级部门树
export async function getParentTreeApi(){
    return await http.get("/api/menu/parent")
}

//编辑权限
export async function editMenuApi(param){
    return await http.put("api/menu",param)
}

//删除权限
export async function deleteMenuApi(param){
    return await http.delete("/api/menu",param)
}
